package org.example.day;

/**
 * @Description: TODO
 * @Author wyatt
 * @Data 2025/03/31 11:30
 */
public class Solution2278 {


    public int percentageLetter(String s, char letter) {

        int count = 0;
        for (int i = 0; i < s.length(); i++) {
            if(s.charAt(i) == letter){
                count++;
            }
        }
        return count * 100 / s.length();

    }
}
